//
//  JGCountDownButton.h
//  JHWAccompany
//
//  Created by Magician on 2018/4/3.
//  Copyright © 2018年 Jugame Inc. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface JGCountDownButton : UIButton

+ (instancetype)startWithTitle:(NSString *)title
                       countDownTitle:(NSString *)subTitle
                            mainColor:(UIColor *)mColor
                           countColor:(UIColor *)color;

+ (instancetype)countDownButtonWithTitle:(NSString *)title
                          countDownTitle:(NSString *)countTitle
                              titleColor:(UIColor *)color
                     countDownTitleColor:(UIColor *)countColor;

@property (nonatomic,assign) NSInteger time;

// 停止倒计时并重置标题
- (void)resetWithTitle:(NSString *)title;

- (void)startDown;
@end
